% REPLACE WITH YOUR OWN FUNCTION